package com.zenagro.domain.zenagro;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;

import org.openxava.annotations.Required;

import com.zenagro.domain.zenagro.base.Identificable;
@Entity (name="Provincia")
@Table (name="provincia")

@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class Provincia extends Identificable {

	@Required
    @Column(name="nombre",  nullable=false,  unique=true)//  length=45,
    private String nombre;

	public String getNombre() {
		return nombre;
	}

	public void setNombre(String nombre) {
		this.nombre = nombre;
	}
}
